package com.xuanyue.db.xuan.core.db;

import java.io.Serializable;
import java.util.Map;

import com.xuanyue.db.xuan.utils.StringUtils;

public class ColumnMetaV2 implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name;
	private Map<String,Object> type;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Map<String,Object> getType() {
		return type;
	}
	public void setType(Map<String,Object> type) {
		this.type = type;
	}
	
	public boolean check(ColumnMetaV2 tar) {
		return this.type.containsKey("typeName")&&
				tar.type.containsKey("typeName")&&
				StringUtils.equeals(this.type.get("typeName").toString(), tar.type.get("typeName").toString())
				;
	}
}

